package com.mohan.dlxj.common;

/**
 * Created with IntelliJ IDEA.
 * User: admin
 * Description: 只适用于layui的响应格式
 * Version: V1.0
 */
public class JsonResult<T> {
    private Integer code; //状态码 0 表示成功
    private String msg; //消息
    private long count; //总记录数(总条数)
    private T data; //返回数据

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
